#!/bin/sh
#(C)01micko gpl3 (see /usr/share/doc/legal)
#20110819
#110822 BK modified, called from 3builddistro. runs with current-dir in 'sandbox3'.

echo

## issues..
. ../DISTRO_SPECS
#if [ "$DISTRO_COMPAT_VERSION" = '14.2' ];then
#cat > rootfs-complete/etc/X11/xorg.conf.d/20-intel.conf <<_EOG
#Section "Device" 
#  Identifier "Card0" 
#  Driver "intel" 
#  Option "AccelMethod" "uxa" 
#EndSection
#_EOG
#	echo "Applying Intel 'UXA' work around"
#fi

echo "removing redundant Slackware service scripts"
F=`ls rootfs-complete/etc/rc.d|grep '^rc\.'|grep -vE "cleanup|update|sysinit|country|network|shutdown|local|services"`
for script in $F;do
	echo removing: ${script}
	rm -f rootfs-complete/etc/rc.d/${script}
done
echo

echo "removing extra .new files"
find rootfs-complete/etc -type f -name '*.new' -maxdepth 4 -delete
echo
echo "Slacko customisation complete"
echo
sleep 1

#exit 0
